package com.lfs.admin.dao;

import com.lfs.admin.model.entity.AgtWalletDailySummaryEntity;
import com.lfs.admin.model.vo.AgtWalletDetailSummaryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WalletDailySummaryDao {
    void upsertDailySummary(AgtWalletDailySummaryEntity agtWalletDailySummaryEntity);

    List<String> selectAgentsWithTransactions(@Param("date") String date);

    List<AgtWalletDailySummaryEntity> selectDailySummaries(AgtWalletDetailSummaryVO agtWalletDetailSummaryVO);

    List<AgtWalletDailySummaryEntity> calculateDailySummary(AgtWalletDetailSummaryVO agtWalletDetailSummaryVO);

    int existsDailySummary(AgtWalletDetailSummaryVO agtWalletDetailSummaryVO);

    void deleteByDate(AgtWalletDetailSummaryVO agtWalletDetailSummaryVO);
}
